package com.wunu.smartlock1.net.api;

import com.wunu.smartlock1.net.param.LoginParam;
import com.wunu.smartlock1.net.param.RegistParam;
import com.wunu.smartlock1.net.response.ApiLoginResponse;
import com.wunu.smartlock1.net.response.ApiRegistResponse;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface  AccountApi {

    @POST("appLogin")
    Call<ApiLoginResponse> login(@Body LoginParam loginParam);

    @POST("register")
    Call<ApiRegistResponse> regist(@Body RegistParam loginParam);
}